import request from '@/utils/request'

// 查询应急事件信息列表
export function listEvent(query) {
  return request({
    url: '/event/manager/event/list',
    method: 'get',
    params: query
  })
}

// 查询应急事件信息详细
export function getEvent(eId) {
  return request({
    url: '/event/manager/event/' + eId,
    method: 'get'
  })
}

// 新增应急事件信息
export function addEvent(data) {
  return request({
    url: '/event/manager/event',
    method: 'post',
    data: data
  })
}

// 修改应急事件信息
export function updateEvent(data) {
  return request({
    url: '/event/manager/event',
    method: 'put',
    data: data
  })
}

// 删除应急事件信息
export function delEvent(eId) {
  return request({
    url: '/event/manager/event/' + eId,
    method: 'delete'
  })
}

// 导出应急事件信息
export function exportEvent(query) {
  return request({
    url: '/event/manager/event/export',
    method: 'get',
    params: query
  })
}